﻿<%@ Page Language="C#" MasterPageFile="~/Template/TicketManagement.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="TicketManagement.Staff.Edit" %>

<%@ Register src="../Template/uHeader.ascx" tagname="uHeader" tagprefix="uc3" %>
<%@ Register src="../Template/uStaffMenu.ascx" tagname="uStaffMenu" tagprefix="uc5" %>
<%@ Register src="../Template/uStaffSidebar.ascx" tagname="uStaffSidebar" tagprefix="uc6" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .home 
        {
            background-color: #FF6600 !important;
            color: #FFF !important;
        }
    </style>
    <script src="../Assets/Scripts/StaffEdit.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="wrapper">
        <div class="clear10"></div>
        <uc3:uHeader ID="uHeader1" runat="server" />

        <div class="clear10"></div>
        <uc5:uStaffMenu ID="uStaffMenu1" runat="server" />
        <div class="clear10"></div>
        <div class="body">

            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr valign="top">
                        <td>     
                            <table width="100%" class="box-vang5" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td class="text-top">.:. Thay đổi thông tin</td>
                                    </tr>
                                </tbody>
                            </table>
                            <table class="box-vang5" width="100%" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td class="t-l"></td>
                                        <td class="t-c"></td>
                                        <td class="t-r"></td>
                                    </tr>
                                    <tr class="light">
                                        <td class="c-l"></td>
                                        <td class="c-c" valign="top">
                                            <table width="100%" border="0" cellpadding="5" cellspacing="0" class="font_11">
                                                <tbody>
                                                    <tr class="light">
                                                        <td width="150" class="td_11"><strong>Thông tin nhân viên</strong></td>
                                                        <td width="15" class="td_11">&nbsp;</td>
                                                        <td class="td_11">
                                                            <strong>Nhân Viên</strong> 
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2"></td>
                                                        <td class="td_2"></td>
                                                        <td class="td_2"><label id="lblMessage" runat="server" class="color_khancap"></label></td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Tên đăng nhập</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="lblUserId" type="hidden" class="nd" size="20" runat="server"/>
                                                            <input name="txtUsername" id="txtUsername" type="text" class="nd" size="20" runat="server"/>
                                                            <asp:CustomValidator ID="exitsUsername" runat="server" ErrorMessage="Tên đăng nhập đã tồn tại" CssClass="color_khancap" ControlToValidate="txtUsername"></asp:CustomValidator>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Tên đăng nhập không được để trống" ControlToValidate="txtUsername"  CssClass="color_khancap"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Mã nhân viên</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input name="txtCode" id="txtCode" type="text" style="background-color:#CCCCCC" class="nd" size="20" runat="server"/>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2"><label id="lblPasswordHolder" runat="server" class="color_khancap"></label></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtPassword" type="password" class="nd" size="20" runat="server"/>
                                                            <asp:CustomValidator ID="correctPasswordValidator" runat="server" ErrorMessage="Mật khẩu không đúng" CssClass="color_khancap" ControlToValidate="txtPassword"></asp:CustomValidator>
                                                            <asp:CustomValidator ID="requirePasswordValidator" runat="server" ErrorMessage="Mật khẩu không được rỗng" CssClass="color_khancap" ControlToValidate="txtPassword"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light" id="newPasswordHolder" runat="server">
                                                        <td class="td_2"><font color="#FF0000">Mật khẩu mới</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtNewPassword" type="password" class="nd" size="20" runat="server"/>
                                                            <asp:CustomValidator ID="requireNewPassword" runat="server" ErrorMessage="Mật khẩu không được rỗng" CssClass="color_khancap" ControlToValidate="txtNewPassword"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Email<font color="#FF0000">*</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtEmail" name="txtEmail" class="box_input nd" size="20" runat="server"/>
                                                            <asp:CustomValidator ID="exitsEmail" runat="server" ErrorMessage="Email đã tồn tại" CssClass="color_khancap" ControlToValidate="txtEmail"></asp:CustomValidator>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Email không được để trống" ControlToValidate="txtEmail"  CssClass="color_khancap"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Trạng thái</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input type="radio" id="rbtActive" name="active" value="1" runat="server"/>  <label class="bld">Kích hoạt</label>
                                                            <input type="radio" id="rbtNotActive" name="active" value="0" runat="server"/>  <label class="bld">Chưa Kích hoạt</label>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Loại người dùng</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <asp:DropDownList ID="cboUserType" cssClass="box_input cbo" name="techkind" 
                                                                DataValueField="Id" DataTextField="name" runat="server" Width="100px">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Tên đầy đủ nhân viên <font color="#FF0000">*</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input class="box_input nd" id="txtRealName" name="txtRealName" size="20" runat="server"/>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Giới tính</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <select id="cboGender" name="cboGender" runat="server">
                                                                <option value="1">Nam</option>
                                                                <option value="0">Nữ</option>
                                                            </select>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Ngày sinh</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtBirthday" class="box_input nd datePicker" size="20" runat="server"/>
                                                            <asp:RequiredFieldValidator ID="rfvBirthDay" runat="server" ErrorMessage="Bạn phải nhập ngày sinh" ControlToValidate="txtBirthday" CssClass="color_khancap"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Ngày vào làm</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2">
                                                            <input id="txtHireDate" class="box_input nd datePicker" size="20" runat="server"/>
                                                            <asp:RequiredFieldValidator ID="rfvHireDate" runat="server" ErrorMessage="Bạn phải nhập ngày vào làm" ControlToValidate="txtHireDate" CssClass="color_khancap"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Điện thoại<font color="#FF0000">*</font><br>(vd: <font color="#FF0000">0901234567</font>)</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input name="txtPhoneNumber" id="txtPhoneNumber" class="box_input nd" size="20" runat="server"/></td>
                                                    </tr>
                                                    <tr class="light">
                                                        <td class="td_2">Địa chỉ <font color="#FF0000">*</font></td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><input class="box_input nd" id="txtAddress" name="txtAddress" size="20" runat="server"/></td>
                                                    </tr>

                                                    <tr class="light">
                                                        <td class="td_2 bld blue upper">Thông tin khác</td>
                                                        <td class="td_2">:</td>
                                                        <td class="td_2"><textarea class="box_input nd bld" style="color:#00f" name="txtDesc" id="txtDesc" rows="20" cols="10" runat="server"></textarea></td>
                                                    </tr>                

                                                    <tr class="light">
                                                        <td colspan="3" class="td_2">
                                                            <div align="center">
                                                                <asp:Button ID="btnSave" runat="server" Text="Thay đổi" CssClass="buttonnew" 
                                                                    onclick="btnSave_Click"/>
                                                                &nbsp;
                                                                <input name="btnClear" id="btnClear" type="reset" class="buttonnew" value="Làm lại" runat="server"/>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                        <td class="c-r"></td>
                                    </tr>
                                    <tr class="light">
                                        <td class="b-l"></td>
                                        <td class="b-c"></td>
                                        <td class="b-r"></td>
                                    </tr>
                                </tbody>
                            </table>
                            <br>
                        </td>
                        <td width="10">
                        </td>
                        <td width="180">
                            <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr>
                                        <td><img src="../Assets/images/spaces.gif" width="1" height="1" alt=""/></td>
                                    </tr>
                                </tbody>
                            </table>
                            <uc6:uStaffSidebar ID="uStaffSidebar1" runat="server" />
                            <table width="100%" height="4" border="0" cellpadding="0" cellspacing="0">
                                <tbody>
                                    <tr class="light">
                                        <td><img src="../Assets/images/spaces.gif" width="1" height="1" alt=""/></td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>  
        <div class="clear20"></div>
        <div class="clear20"></div>
        <div class="clear"></div>
    </div>
</asp:Content>
    